package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@TableName("T_USER")
@KeySequence("mybatisPlusKeyGenerator")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户唯一标识
     */
    @TableId(type=IdType.INPUT)
    private Long id;

    /**
     * 用户id
     */

    private String userId;

    /**
     * 客户号
     */
    @TableField("CLIENT_NO")
    private String clientNo;

    /**
     * 客户名称
     */
    @TableField("CLIENT_NAME")
    private String clientName;

    /**
     * 性别
     */
    @TableField("GENDER")
    private String gender;

    /**
     * 手机号
     */
    @TableField("MOBILE")
    private String mobile;

    /**
     * 证件号码
     */
    @TableField("GLOBAL_ID")
    private String globalId;

    /**
     * 证件类型
     */
    @TableField("GLOBAL_TYPE")
    private String globalType;

    /**
     * 用户别名
     */
    @TableField("NICK_NAME")
    private String nickName;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    private Date updatedTime;

    @TableField(exist = false)
    private Date registerTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClientNo() {
        return clientNo;
    }

    public void setClientNo(String clientNo) {
        this.clientNo = clientNo;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getGlobalId() {
        return globalId;
    }

    public void setGlobalId(String globalId) {
        this.globalId = globalId;
    }

    public String getGlobalType() {
        return globalType;
    }

    public void setGlobalType(String globalType) {
        this.globalType = globalType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", userId=" + userId +
        ", clientNo=" + clientNo +
        ", clientName=" + clientName +
        ", gender=" + gender +
        ", mobile=" + mobile +
        ", globalId=" + globalId +
        ", globalType=" + globalType +
        ", nickName=" + nickName +
        ", createdTime=" + createdTime +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
